// tailwind.config.cjs
async function loadConfig() {
    const themes = await import("../next-blog/src/config/theme.js"); // 确保是 .js 文件
    return {
        content: [
            "./app/**/*.{js,ts,jsx,tsx}",
            "./pages/**/*.{js,ts,jsx,tsx}",
            "./components/**/*.{js,ts,jsx,tsx}"
        ],
        plugins: [import("daisyui")], // 使用 require 替代 import

        daisyui: {
            themes,
            darkTheme: "dark",
            base: true,
            styled: true,
            utils: true,
            prefix: "",
            logs: true,
        }
    };
}

module.exports = loadConfig();
